package com.example.cloud.dao.mongdb.basic.config;

import com.example.cloud.model.config.Unit;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/6/12.
 */
@Repository
public interface MongoUnitRepository extends MongoRepository<Unit, Long> {
    List<Unit> findByAccountIdAndOrganIdAndDeleteFlag(Long accountId, Long organId, int deleteFlag);
    int deleteByIdIn(List<Long> ids);
}
